import request from '@/utils/request'

// 查询车辆里程统计列表
export function listCarMiles(query) {
  return request({
    url: '/report/carMiles/list',
    method: 'get',
    params: query
  })
}

// 查询车辆里程统计详细
export function getCarMiles(milesId) {
  return request({
    url: '/report/carMiles/' + milesId,
    method: 'get'
  })
}

// 新增车辆里程统计
export function addCarMiles(data) {
  return request({
    url: '/report/carMiles',
    method: 'post',
    data: data
  })
}

// 修改车辆里程统计
export function updateCarMiles(data) {
  return request({
    url: '/report/carMiles',
    method: 'put',
    data: data
  })
}

// 删除车辆里程统计
export function delCarMiles(milesId) {
  return request({
    url: '/report/carMiles/' + milesId,
    method: 'delete'
  })
}
